<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>

<html>
<head>
<title>Upload File list</title>
</head>
 
<body>
<h2>Upload file list</h2>
<s:actionerror />
<s:form namespace="/upload" method="post" enctype="multipart/form-data">
    <s:file name="fileAllegato" label="File Allegato" />
    <s:hidden name="backStep" />
    <s:hidden name="nextStep"/>
    <s:hidden name="curStep"/>
    <s:submit value="Upload" action="add" align="center" />
    <c:forEach items="${allegati}" var="a">
    	<p><c:out value="${a.filename}"/> = <c:out value="${a.url}"/></p>
    </c:forEach>
    <s:submit value="Avanti"  action="next" />
	<s:submit value="Indietro"  action="back"/>
</s:form>
</body>
</html>